xen/passthrough: Introduce iommu_construct
authorJulien Grall <julien.grall@linaro.org>
Tue, 28 Apr 2015 14:32:31 +0000 (15:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 May 2015 14:41:58 +0000 (15:41 +0100)
commit4c79d069a1cd449648380f580dd1c9aa8fdd6519
tree6cd167b990ad512ea153f5f26ea3a3f3744a2d1c
parent9873164ae10588410a68bb8d735f3752927dc49a
xen/passthrough: Introduce iommu_construct

This new function will correctly initialize the IOMMU page table for the
current domain.

Also use it in iommu_assign_dt_device even though the current IOMMU
implementation on ARM shares P2M with the processor.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/passthrough/arm/iommu.c
xen/drivers/passthrough/device_tree.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/include/xen/iommu.h